package com.dailyblue.java.project.smbms.goods.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dailyblue.java.commons.util.JsonResult;
import lombok.Data;

import java.io.Serializable;

@TableName("smbms_goods")
@Data
public class Goods implements Serializable {

    private Integer id;
    private String goodsCode;
    private String goodsName;
    private String goodsUnit;
    private Double goodsPrice;
    private String goodsCreationTime;
    private String goodsDesc;
    private Integer providerId;
    @TableLogic(value = "1", delval = "0")
    private Integer goodsState;
    // 描述商品的库存信息
    @TableField(exist = false)
    private JsonResult stock;
    // 描述商品的库存Redis的key
    @TableField(exist = false)
    private String stockKey;
    // 描述商品的供应商信息
    @TableField(exist = false)
    private JsonResult provider;
}
